<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html>
<html lang="en" class="pixel-ratio-1 watch-active-state">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>跳转提示</title>
<style>
	.success {
	position: absolute;
	top:38pt;
	}
	.my-note {
	display: block;
	position: absolute;
	top: 35%;
	font-size: 14pt;
	vertical-align:middle;
	width: 100%;
	text-align:center;
	}

	.my-loop {
	display: block;
	margin: 0 auto;
	position: absolute;
	float: center;
	top: 42%;
	font-size: 6pt;
	color: #666666;
	text-align:center;
	width: 100%;
	vertical-align:middle;
	}
</style>
</head>
<?php 
if(isset($message)) {
	$info = $message;
	$img  = '/Public/Tpl/87@2x.png';
}else{
	$info = $error; 
	$img  = '/Public/Tpl/88@2x.png';
}
?>
<body>
<div>
	<div class="success">
	<img src="<?php echo $img;?>" width="100%" height="100%">
	</div>
	<div class="my-note">
		<?php echo $info;?>
	</div>
	<div class="my-loop">
		<p class="jump">页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间:<b id="wait"><?php echo($waitSecond); ?></b></p>
	</div>
	
</div>

<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();

// var imgwidth = window.screen.width;
// document.getElementById("imgtest").width = imgwidth ;
// alert(imgwidth);
</script>
</body>
</html>